<?php
$server = "localhost";
$unam = "root";
$umm = "root";
$db_name = "maxik";

$k_name = $_POST['isim'];
$k_til = $_POST['til'];
$k_ads = $_POST['ads'];
$k_maktap = $_POST['maktap'];

$con = mysqli_connect($server, $unam, $umm, $db_name);
if ($con) {
    $insert = "insert into table3(isim,til,ads,maktap)values('$k_name','$k_til','$k_ads','$k_maktap')";
    $go_go = mysqli_query($con, $insert);
    if ($go_go) {
        echo 'add ok';
    } else {
        echo 'add_no';
    }
} else {
    echo 'kiralmidim,';
}